﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Contracts;

namespace Client
{
    public class PushCallback : IPushCallback
    {
        public delegate void MessageHandler(string message);

        public event MessageHandler msgReceived;

        public void NotifyMessage(string message)
        {
            if (this.msgReceived != null)
            {
                this.msgReceived(message);
            }
            Console.WriteLine(message);
        }
    }
}